<!DOCTYPE html>
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>湖南省自来水公司营销管理信息系统 - 员工登陆</title> 
	
	<link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../css/login.css" type="text/css" media="screen" title="no title" />
   <script src="../../js/jquery/jquery-1.5.2.min.js"></script>
</head> 
 
<body>
<div id="login_background">
<div id="login">
	<h1>员工登陆</h1>
	<div id="login_panel">
		<form action="/syEmp/loginS" method="post" accept-charset="utf-8">
			<div class="login_fields">
				<div class="field">
			           &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;
                    &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;
                    &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;
                    <span style="color: red">${cuo}</span>

					<label for="username">员工工号：</label>
					<input type="text" name="empno" value="" id="username" tabindex="1" placeholder="请输入您的员工编号" />
				</div>
				
				<div class="field">
					<label for="pwd">登陆密码： </label>
					<input type="password" name="pwd" value="" id="pwd" tabindex="2" placeholder="请输入您的密码" />
				</div>
			</div> <!-- .login_fields -->
			
			<div class="login_actions">
				<button type="submit" class="btn btn-orange" tabindex="3">登陆</button>
			</div>
		</form>
	</div> <!-- #login_panel -->		
</div> 
<!-- #login -->
</div>

</body>
 
</html>

<script type="text/javascript">
	$(function () {
        $("form").submit(function () {
		return	login();
        })
    })

	function login() {
        //获取页面数据
        let userName = $.trim($("form input[name=empno]").val());
        let userPassword = $.trim($("form input[name=pwd]").val());
        if(userName===""){
        alert("工号不能为空")
            return false;
        }
        if(userPassword===""){
          alert("密码不能为空")
            return false;
        }
    }


</script>